package org.example.basic.day06;

/**
 * @author 清倌
 */
public class Demo03Lambda {
    public static void main(String[] args) {
        int a = 10;
        Cat cat=(name)-> {
            System.out.println("渣男");
            return name+"吃东西"+ a;
        };
        System.out.println(cat.eat("小猫"));

    }
}
@FunctionalInterface
interface Cat{
    String eat(String name);
}